home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / reuse.lha / reuse / c / Positions.h < prev    next >
C/C++ Source or Header  |  1992-08-18  |  877b  |  36 lines

  1. # ifndef yyPositions
  2. # define yyPositions
  3.  
  4. /* $Id: Positions.h,v 1.0 1992/08/07 14:31:43 grosch rel $ */
  5.  
  6. /* $Log: Positions.h,v $
  7.  * Revision 1.0  1992/08/07  14:31:43  grosch
  8.  * Initial revision
  9.  *
  10.  */
  11.  
  12. /* Ich, Doktor Josef Grosch, Informatiker, Juli 1992 */
  13.  
  14. # include <stdio.h>
  15.  
  16. # if defined __STDC__ | defined __cplusplus
  17. # define ARGS(parameters)    parameters
  18. # else
  19. # define ARGS(parameters)    ()
  20. # endif
  21.  
  22. typedef struct { unsigned short Line, Column; } tPosition;
  23.  
  24. extern tPosition NoPosition;
  25.             /* A default position (0, 0).            */
  26.  
  27. extern int  Compare      ARGS((tPosition Position1, tPosition Position2));
  28.             /* Returns -1 if Position1 < Position2.        */
  29.             /* Returns  0 if Position1 = Position2.        */
  30.             /* Returns  1 if Position1 > Position2.        */
  31.  
  32. extern void WritePosition ARGS((FILE * File, tPosition Position));
  33.             /* The 'Position' is printed on the 'File'.    */
  34.  
  35. # endif
  36.